# -*- coding: utf-8 -*-
import scrapy
from myspider.items import areaimgitem

class JingQuSpider(scrapy.spiders.Spider):
    name = "quyutu"
    allowed_domains = ["baike.baidu.com"]
    start_urls = ["https://baike.baidu.com/item/%E9%87%8D%E5%BA%86/23586"]

    def parse(self, response):
        #正式数据
        areacodes = ['110000', '110101', '110102', '110105', '110106', '110107', '110108', '110109', '110111', '110112', '110113', '110114', '110115', '110116', '110117', '110118', '110119', '120000', '120101', '120102', '120103', '120104', '120105', '120106', '120110', '120111', '120112', '120113', '120114', '120115', '120116', '120117', '120118', '120119', '130000', '130100', '130102', '130104', '130105', '130107', '130108', '130109', '130110', '130111', '130121', '130123', '130125', '130126', '130127', '130128', '130129', '130130', '130131', '130132', '130133', '130181', '130183', '130184', '130200', '130202', '130203', '130204', '130205', '130207', '130208', '130209', '130223', '130224', '130225', '130227', '130229', '130281', '130283', '130300', '130302', '130303', '130304', '130306', '130321', '130322', '130324', '130400', '130402', '130403', '130404', '130406', '130407', '130408', '130423', '130424', '130425', '130426', '130427', '130430', '130431', '130432', '130433', '130434', '130435', '130481', '130500', '130502', '130503', '130521', '130522', '130523', '130524', '130525', '130526', '130527', '130528', '130529', '130530', '130531', '130532', '130533', '130534', '130535', '130581', '130582', '130600', '130602', '130606', '130607', '130608', '130609', '130623', '130624', '130626', '130627', '130628', '130629', '130630', '130631', '130632', '130633', '130634', '130635', '130636', '130637', '130638', '130681', '130682', '130683', '130684', '130700', '130702', '130703', '130705', '130706', '130708', '130709', '130722', '130723', '130724', '130725', '130726', '130727', '130728', '130730', '130731', '130732', '130800', '130802', '130803', '130804', '130821', '130822', '130824', '130825', '130826', '130827', '130828', '130881', '130900', '130902', '130903', '130921', '130922', '130923', '130924', '130925', '130926', '130927', '130928', '130929', '130930', '130981', '130982', '130983', '130984', '131000', '131002', '131003', '131022', '131023', '131024', '131025', '131026', '131028', '131081', '131082', '131100', '131102', '131103', '131121', '131122', '131123', '131124', '131125', '131126', '131127', '131128', '131182', '140000', '140100', '140105', '140106', '140107', '140108', '140109', '140110', '140121', '140122', '140123', '140181', '140200', '140202', '140203', '140211', '140212', '140221', '140222', '140223', '140224', '140225', '140226', '140227', '140300', '140302', '140303', '140311', '140321', '140322', '140400', '140402', '140411', '140421', '140423', '140424', '140425', '140426', '140427', '140428', '140429', '140430', '140431', '140481', '140500', '140502', '140521', '140522', '140524', '140525', '140581', '140600', '140602', '140603', '140621', '140622', '140623', '140624', '140700', '140702', '140721', '140722', '140723', '140724', '140725', '140726', '140727', '140728', '140729', '140781', '140800', '140802', '140821', '140822', '140823', '140824', '140825', '140826', '140827', '140828', '140829', '140830', '140881', '140882', '140900', '140902', '140921', '140922', '140923', '140924', '140925', '140926', '140927', '140928', '140929', '140930', '140931', '140932', '140981', '141000', '141002', '141021', '141022', '141023', '141024', '141025', '141026', '141027', '141028', '141029', '141030', '141031', '141032', '141033', '141034', '141081', '141082', '141100', '141102', '141121', '141122', '141123', '141124', '141125', '141126', '141127', '141128', '141129', '141130', '141181', '141182', '150000', '150100', '150102', '150103', '150104', '150105', '150121', '150122', '150123', '150124', '150125', '150200', '150202', '150203', '150204', '150205', '150206', '150207', '150221', '150222', '150223', '150300', '150302', '150303', '150304', '150400', '150402', '150403', '150404', '150421', '150422', '150423', '150424', '150425', '150426', '150428', '150429', '150430', '150500', '150502', '150521', '150522', '150523', '150524', '150525', '150526', '150581', '150600', '150602', '150603', '150621', '150622', '150623', '150624', '150625', '150626', '150627', '150700', '150702', '150703', '150721', '150722', '150723', '150724', '150725', '150726', '150727', '150781', '150782', '150783', '150784', '150785', '150800', '150802', '150821', '150822', '150823', '150824', '150825', '150826', '150900', '150902', '150921', '150922', '150923', '150924', '150925', '150926', '150927', '150928', '150929', '150981', '152200', '152201', '152202', '152221', '152222', '152223', '152224', '152500', '152501', '152502', '152522', '152523', '152524', '152525', '152526', '152527', '152528', '152529', '152530', '152531', '152900', '152921', '152922', '152923', '210000', '210100', '210102', '210103', '210104', '210105', '210106', '210111', '210112', '210113', '210114', '210115', '210123', '210124', '210181', '210200', '210202', '210203', '210204', '210211', '210212', '210213', '210214', '210224', '210281', '210283', '210300', '210302', '210303', '210304', '210311', '210321', '210323', '210381', '210400', '210402', '210403', '210404', '210411', '210421', '210422', '210423', '210500', '210502', '210503', '210504', '210505', '210521', '210522', '210600', '210602', '210603', '210604', '210624', '210681', '210682', '210700', '210702', '210703', '210711', '210726', '210727', '210781', '210782', '210800', '210802', '210803', '210804', '210811', '210881', '210882', '210900', '210902', '210903', '210904', '210905', '210911', '210921', '210922', '211000', '211002', '211003', '211004', '211005', '211011', '211021', '211081', '211100', '211102', '211103', '211104', '211122', '211200', '211202', '211204', '211221', '211223', '211224', '211281', '211282', '211300', '211302', '211303', '211321', '211322', '211324', '211381', '211382', '211400', '211402', '211403', '211404', '211421', '211422', '211481', '220000', '220100', '220102', '220103', '220104', '220105', '220106', '220112', '220113', '220122', '220182', '220183', '220200', '220202', '220203', '220204', '220211', '220221', '220281', '220282', '220283', '220284', '220300', '220302', '220303', '220322', '220323', '220381', '220382', '220400', '220402', '220403', '220421', '220422', '220500', '220502', '220503', '220521', '220523', '220524', '220581', '220582', '220600', '220602', '220605', '220621', '220622', '220623', '220681', '220700', '220702', '220721', '220722', '220723', '220781', '220800', '220802', '220821', '220822', '220881', '220882', '222400', '222401', '222402', '222403', '222404', '222405', '222406', '222424', '222426', '230000', '230100', '230102', '230103', '230104', '230108', '230109', '230110', '230111', '230112', '230113', '230123', '230124', '230125', '230126', '230127', '230128', '230129', '230183', '230184', '230200', '230202', '230203', '230204', '230205', '230206', '230207', '230208', '230221', '230223', '230224', '230225', '230227', '230229', '230230', '230231', '230281', '230300', '230302', '230303', '230304', '230305', '230306', '230307', '230321', '230381', '230382', '230400', '230402', '230403', '230404', '230405', '230406', '230407', '230421', '230422', '230500', '230502', '230503', '230505', '230506', '230521', '230522', '230523', '230524', '230600', '230602', '230603', '230604', '230605', '230606', '230621', '230622', '230623', '230624', '230700', '230702', '230703', '230704', '230705', '230706', '230707', '230708', '230709', '230710', '230711', '230712', '230713', '230714', '230715', '230716', '230722', '230781', '230800', '230803', '230804', '230805', '230811', '230822', '230826', '230828', '230881', '230882', '230883', '230900', '230902', '230903', '230904', '230921', '231000', '231002', '231003', '231004', '231005', '231025', '231081', '231083', '231084', '231085', '231086', '231100', '231102', '231121', '231123', '231124', '231181', '231182', '231200', '231202', '231221', '231222', '231223', '231224', '231225', '231226', '231281', '231282', '231283', '232700', '232721', '232722', '232723', '310000', '310101', '310104', '310105', '310106', '310107', '310109', '310110', '310112', '310113', '310114', '310115', '310116', '310117', '310118', '310120', '310151', '320000', '320100', '320102', '320104', '320105', '320106', '320111', '320113', '320114', '320115', '320116', '320117', '320118', '320200', '320205', '320206', '320211', '320213', '320214', '320281', '320282', '320300', '320302', '320303', '320305', '320311', '320312', '320321', '320322', '320324', '320381', '320382', '320400', '320402', '320404', '320411', '320412', '320413', '320481', '320500', '320505', '320506', '320507', '320508', '320509', '320581', '320582', '320583', '320585', '320600', '320602', '320611', '320612', '320621', '320623', '320681', '320682', '320684', '320700', '320703', '320706', '320707', '320722', '320723', '320724', '320800', '320803', '320804', '320812', '320813', '320826', '320830', '320831', '320900', '320902', '320903', '320904', '320921', '320922', '320923', '320924', '320925', '320981', '321000', '321002', '321003', '321012', '321023', '321081', '321084', '321100', '321102', '321111', '321112', '321181', '321182', '321183', '321200', '321202', '321203', '321204', '321281', '321282', '321283', '321300', '321302', '321311', '321322', '321323', '321324', '330000', '330100', '330102', '330103', '330104', '330105', '330106', '330108', '330109', '330110', '330111', '330112', '330122', '330127', '330182', '330200', '330203', '330205', '330206', '330211', '330212', '330213', '330225', '330226', '330281', '330282', '330300', '330302', '330303', '330304', '330305', '330324', '330326', '330327', '330328', '330329', '330381', '330382', '330400', '330402', '330411', '330421', '330424', '330481', '330482', '330483', '330500', '330502', '330503', '330521', '330522', '330523', '330600', '330602', '330603', '330604', '330624', '330681', '330683', '330700', '330702', '330703', '330723', '330726', '330727', '330781', '330782', '330783', '330784', '330800', '330802', '330803', '330822', '330824', '330825', '330881', '330900', '330902', '330903', '330921', '330922', '331000', '331002', '331003', '331004', '331022', '331023', '331024', '331081', '331082', '331083', '331100', '331102', '331121', '331122', '331123', '331124', '331125', '331126', '331127', '331181', '340000', '340100', '340102', '340103', '340104', '340111', '340121', '340122', '340123', '340124', '340181', '340200', '340202', '340203', '340207', '340208', '340221', '340222', '340223', '340225', '340300', '340302', '340303', '340304', '340311', '340321', '340322', '340323', '340400', '340402', '340403', '340404', '340405', '340406', '340421', '340422', '340500', '340503', '340504', '340506', '340521', '340522', '340523', '340600', '340602', '340603', '340604', '340621', '340700', '340705', '340706', '340711', '340722', '340800', '340802', '340803', '340811', '340822', '340824', '340825', '340826', '340827', '340828', '340881', '341000', '341002', '341003', '341004', '341021', '341022', '341023', '341024', '341100', '341102', '341103', '341122', '341124', '341125', '341126', '341181', '341182', '341200', '341202', '341203', '341204', '341221', '341222', '341225', '341226', '341282', '341300', '341302', '341321', '341322', '341323', '341324', '341500', '341502', '341503', '341504', '341522', '341523', '341524', '341525', '341600', '341602', '341621', '341622', '341623', '341700', '341702', '341721', '341722', '341723', '341800', '341802', '341821', '341822', '341823', '341824', '341825', '341881', '350000', '350100', '350102', '350103', '350104', '350105', '350111', '350112', '350121', '350122', '350123', '350124', '350125', '350128', '350181', '350200', '350203', '350205', '350206', '350211', '350212', '350213', '350300', '350302', '350303', '350304', '350305', '350322', '350400', '350402', '350403', '350421', '350423', '350424', '350425', '350426', '350427', '350428', '350429', '350430', '350481', '350500', '350502', '350503', '350504', '350505', '350521', '350524', '350525', '350526', '350527', '350581', '350582', '350583', '350600', '350602', '350603', '350622', '350623', '350624', '350625', '350626', '350627', '350628', '350629', '350681', '350700', '350702', '350703', '350721', '350722', '350723', '350724', '350725', '350781', '350782', '350783', '350800', '350802', '350803', '350821', '350823', '350824', '350825', '350881', '350900', '350902', '350921', '350922', '350923', '350924', '350925', '350926', '350981', '350982', '360000', '360100', '360102', '360103', '360104', '360105', '360111', '360112', '360121', '360123', '360124', '360200', '360202', '360203', '360222', '360281', '360300', '360302', '360313', '360321', '360322', '360323', '360400', '360402', '360403', '360404', '360423', '360424', '360425', '360426', '360428', '360429', '360430', '360481', '360482', '360483', '360500', '360502', '360521', '360600', '360602', '360622', '360681', '360700', '360702', '360703', '360704', '360722', '360723', '360724', '360725', '360726', '360727', '360728', '360729', '360730', '360731', '360732', '360733', '360734', '360735', '360781', '360800', '360802', '360803', '360821', '360822', '360823', '360824', '360825', '360826', '360827', '360828', '360829', '360830', '360881', '360900', '360902', '360921', '360922', '360923', '360924', '360925', '360926', '360981', '360982', '360983', '361000', '361002', '361003', '361021', '361022', '361023', '361024', '361025', '361026', '361027', '361028', '361030', '361100', '361102', '361103', '361121', '361123', '361124', '361125', '361126', '361127', '361128', '361129', '361130', '361181', '370000', '370100', '370102', '370103', '370104', '370105', '370112', '370113', '370114', '370124', '370125', '370126', '370200', '370202', '370203', '370211', '370212', '370213', '370214', '370215', '370281', '370283', '370285', '370300', '370302', '370303', '370304', '370305', '370306', '370321', '370322', '370323', '370400', '370402', '370403', '370404', '370405', '370406', '370481', '370500', '370502', '370503', '370505', '370522', '370523', '370600', '370602', '370611', '370612', '370613', '370634', '370681', '370682', '370683', '370684', '370685', '370686', '370687', '370700', '370702', '370703', '370704', '370705', '370724', '370725', '370781', '370782', '370783', '370784', '370785', '370786', '370800', '370811', '370812', '370826', '370827', '370828', '370829', '370830', '370831', '370832', '370881', '370883', '370900', '370902', '370911', '370921', '370923', '370982', '370983', '371000', '371002', '371003', '371082', '371083', '371100', '371102', '371103', '371121', '371122', '371200', '371202', '371203', '371300', '371302', '371311', '371312', '371321', '371322', '371323', '371324', '371325', '371326', '371327', '371328', '371329', '371400', '371402', '371403', '371422', '371423', '371424', '371425', '371426', '371427', '371428', '371481', '371482', '371500', '371502', '371521', '371522', '371523', '371524', '371525', '371526', '371581', '371600', '371602', '371603', '371621', '371622', '371623', '371625', '371626', '371700', '371702', '371703', '371721', '371722', '371723', '371724', '371725', '371726', '371728', '410000', '410100', '410102', '410103', '410104', '410105', '410106', '410108', '410122', '410181', '410182', '410183', '410184', '410185', '410200', '410202', '410203', '410204', '410205', '410212', '410221', '410222', '410223', '410225', '410300', '410302', '410303', '410304', '410305', '410306', '410311', '410322', '410323', '410324', '410325', '410326', '410327', '410328', '410329', '410381', '410400', '410402', '410403', '410404', '410411', '410421', '410422', '410423', '410425', '410481', '410482', '410500', '410502', '410503', '410505', '410506', '410522', '410523', '410526', '410527', '410581', '410600', '410602', '410603', '410611', '410621', '410622', '410700', '410702', '410703', '410704', '410711', '410721', '410724', '410725', '410726', '410727', '410728', '410781', '410782', '410800', '410802', '410803', '410804', '410811', '410821', '410822', '410823', '410825', '410882', '410883', '410900', '410902', '410922', '410923', '410926', '410927', '410928', '411000', '411002', '411003', '411024', '411025', '411081', '411082', '411100', '411102', '411103', '411104', '411121', '411122', '411200', '411202', '411203', '411221', '411224', '411281', '411282', '411300', '411302', '411303', '411321', '411322', '411323', '411324', '411325', '411326', '411327', '411328', '411329', '411330', '411381', '411400', '411402', '411403', '411421', '411422', '411423', '411424', '411425', '411426', '411481', '411500', '411502', '411503', '411521', '411522', '411523', '411524', '411525', '411526', '411527', '411528', '411600', '411602', '411621', '411622', '411623', '411624', '411625', '411626', '411627', '411628', '411681', '411700', '411702', '411721', '411722', '411723', '411724', '411725', '411726', '411727', '411728', '411729', '419001', '420000', '420100', '420102', '420103', '420104', '420105', '420106', '420107', '420111', '420112', '420113', '420114', '420115', '420116', '420117', '420200', '420202', '420203', '420204', '420205', '420222', '420281', '420300', '420302', '420303', '420304', '420322', '420323', '420324', '420325', '420381', '420500', '420502', '420503', '420504', '420505', '420506', '420525', '420526', '420527', '420528', '420529', '420581', '420582', '420583', '420600', '420602', '420606', '420607', '420624', '420625', '420626', '420682', '420683', '420684', '420700', '420702', '420703', '420704', '420800', '420802', '420804', '420821', '420822', '420881', '420900', '420902', '420921', '420922', '420923', '420981', '420982', '420984', '421000', '421002', '421003', '421022', '421023', '421024', '421081', '421083', '421087', '421100', '421102', '421121', '421122', '421123', '421124', '421125', '421126', '421127', '421181', '421182', '421200', '421202', '421221', '421222', '421223', '421224', '421281', '421300', '421303', '421321', '421381', '422800', '422801', '422802', '422822', '422823', '422825', '422826', '422827', '422828', '429004', '429005', '429006', '429021', '430000', '430100', '430102', '430103', '430104', '430105', '430111', '430112', '430121', '430181', '430182', '430200', '430202', '430203', '430204', '430211', '430221', '430223', '430224', '430225', '430281', '430300', '430302', '430304', '430321', '430381', '430382', '430400', '430405', '430406', '430407', '430408', '430412', '430421', '430422', '430423', '430424', '430426', '430481', '430482', '430500', '430502', '430503', '430511', '430521', '430522', '430523', '430524', '430525', '430527', '430528', '430529', '430581', '430600', '430602', '430603', '430611', '430621', '430623', '430624', '430626', '430681', '430682', '430700', '430702', '430703', '430721', '430722', '430723', '430724', '430725', '430726', '430781', '430800', '430802', '430811', '430821', '430822', '430900', '430902', '430903', '430921', '430922', '430923', '430981', '431000', '431002', '431003', '431021', '431022', '431023', '431024', '431025', '431026', '431027', '431028', '431081', '431100', '431102', '431103', '431121', '431122', '431123', '431124', '431125', '431126', '431127', '431128', '431129', '431200', '431202', '431221', '431222', '431223', '431224', '431225', '431226', '431227', '431228', '431229', '431230', '431281', '431300', '431302', '431321', '431322', '431381', '431382', '433100', '433101', '433122', '433123', '433124', '433125', '433126', '433127', '433130', '440000', '440100', '440103', '440104', '440105', '440106', '440111', '440112', '440113', '440114', '440115', '440117', '440118', '440200', '440203', '440204', '440205', '440222', '440224', '440229', '440232', '440233', '440281', '440282', '440300', '440303', '440304', '440305', '440306', '440307', '440308', '440309', '440310', '440400', '440402', '440403', '440404', '440500', '440507', '440511', '440512', '440513', '440514', '440515', '440523', '440600', '440604', '440605', '440606', '440607', '440608', '440700', '440703', '440704', '440705', '440781', '440783', '440784', '440785', '440800', '440802', '440803', '440804', '440811', '440823', '440825', '440881', '440882', '440883', '440900', '440902', '440904', '440981', '440982', '440983', '441200', '441202', '441203', '441204', '441223', '441224', '441225', '441226', '441284', '441300', '441302', '441303', '441322', '441323', '441324', '441400', '441402', '441403', '441422', '441423', '441424', '441426', '441427', '441481', '441500', '441502', '441521', '441523', '441581', '441600', '441602', '441621', '441622', '441623', '441624', '441625', '441700', '441702', '441704', '441721', '441781', '441800', '441802', '441803', '441821', '441823', '441825', '441826', '441881', '441882', '441900', '442000', '445100', '445102', '445103', '445122', '445200', '445202', '445203', '445222', '445224', '445281', '445300', '445302', '445303', '445321', '445322', '445381', '450000', '450100', '450102', '450103', '450105', '450107', '450108', '450109', '450110', '450123', '450124', '450125', '450126', '450127', '450200', '450202', '450203', '450204', '450205', '450206', '450222', '450223', '450224', '450225', '450226', '450300', '450302', '450303', '450304', '450305', '450311', '450312', '450321', '450323', '450324', '450325', '450326', '450327', '450328', '450329', '450330', '450331', '450332', '450400', '450403', '450405', '450406', '450421', '450422', '450423', '450481', '450500', '450502', '450503', '450512', '450521', '450600', '450602', '450603', '450621', '450681', '450700', '450702', '450703', '450721', '450722', '450800', '450802', '450803', '450804', '450821', '450881', '450900', '450902', '450903', '450921', '450922', '450923', '450924', '450981', '451000', '451002', '451021', '451022', '451023', '451024', '451026', '451027', '451028', '451029', '451030', '451031', '451081', '451100', '451102', '451103', '451121', '451122', '451123', '451200', '451202', '451203', '451221', '451222', '451223', '451224', '451225', '451226', '451227', '451228', '451229', '451300', '451302', '451321', '451322', '451323', '451324', '451381', '451400', '451402', '451421', '451422', '451423', '451424', '451425', '451481', '460000', '460100', '460105', '460106', '460107', '460108', '460200', '460202', '460203', '460204', '460205', '460300', '460400', '469001', '469002', '469005', '469006', '469007', '469021', '469022', '469023', '469024', '469025', '469026', '469027', '469028', '469029', '469030', '500000', '500101', '500102', '500103', '500104', '500105', '500106', '500107', '500108', '500109', '500110', '500111', '500112', '500113', '500114', '500115', '500116', '500117', '500118', '500119', '500120', '500151', '500152', '500153', '500154', '500155', '500156', '500229', '500230', '500231', '500233', '500235', '500236', '500237', '500238', '500240', '500241', '500242', '500243', '510000', '510100', '510104', '510105', '510106', '510107', '510108', '510112', '510113', '510114', '510115', '510116', '510117', '510121', '510129', '510131', '510132', '510181', '510182', '510183', '510184', '510185', '510300', '510302', '510303', '510304', '510311', '510321', '510322', '510400', '510402', '510403', '510411', '510421', '510422', '510500', '510502', '510503', '510504', '510521', '510522', '510524', '510525', '510600', '510603', '510604', '510623', '510681', '510682', '510683', '510700', '510703', '510704', '510705', '510722', '510723', '510725', '510726', '510727', '510781', '510800', '510802', '510811', '510812', '510821', '510822', '510823', '510824', '510900', '510903', '510904', '510921', '510922', '510923', '511000', '511002', '511011', '511024', '511025', '511083', '511100', '511102', '511111', '511112', '511113', '511123', '511124', '511126', '511129', '511132', '511133', '511181', '511300', '511302', '511303', '511304', '511321', '511322', '511323', '511324', '511325', '511381', '511400', '511402', '511403', '511421', '511423', '511424', '511425', '511500', '511502', '511503', '511521', '511523', '511524', '511525', '511526', '511527', '511528', '511529', '511600', '511602', '511603', '511621', '511622', '511623', '511681', '511700', '511702', '511703', '511722', '511723', '511724', '511725', '511781', '511800', '511802', '511803', '511822', '511823', '511824', '511825', '511826', '511827', '511900', '511902', '511903', '511921', '511922', '511923', '512000', '512002', '512021', '512022', '513200', '513201', '513221', '513222', '513223', '513224', '513225', '513226', '513227', '513228', '513230', '513231', '513232', '513233', '513300', '513301', '513322', '513323', '513324', '513325', '513326', '513327', '513328', '513329', '513330', '513331', '513332', '513333', '513334', '513335', '513336', '513337', '513338', '513400', '513401', '513422', '513423', '513424', '513425', '513426', '513427', '513428', '513429', '513430', '513431', '513432', '513433', '513434', '513435', '513436', '513437', '520000', '520100', '520102', '520103', '520111', '520112', '520113', '520115', '520121', '520122', '520123', '520181', '520200', '520201', '520203', '520221', '520281', '520300', '520302', '520303', '520304', '520322', '520323', '520324', '520325', '520326', '520327', '520328', '520329', '520330', '520381', '520382', '520400', '520402', '520403', '520422', '520423', '520424', '520425', '520500', '520502', '520521', '520522', '520523', '520524', '520525', '520526', '520527', '520600', '520602', '520603', '520621', '520622', '520623', '520624', '520625', '520626', '520627', '520628', '522300', '522301', '522322', '522323', '522324', '522325', '522326', '522327', '522328', '522600', '522601', '522622', '522623', '522624', '522625', '522626', '522627', '522628', '522629', '522630', '522631', '522632', '522633', '522634', '522635', '522636', '522700', '522701', '522702', '522722', '522723', '522725', '522726', '522727', '522728', '522729', '522730', '522731', '522732', '530000', '530100', '530102', '530103', '530111', '530112', '530113', '530114', '530115', '530124', '530125', '530126', '530127', '530128', '530129', '530181', '530300', '530302', '530303', '530321', '530322', '530323', '530324', '530325', '530326', '530381', '530400', '530402', '530403', '530422', '530423', '530424', '530425', '530426', '530427', '530428', '530500', '530502', '530521', '530523', '530524', '530581', '530600', '530602', '530621', '530622', '530623', '530624', '530625', '530626', '530627', '530628', '530629', '530630', '530700', '530702', '530721', '530722', '530723', '530724', '530800', '530802', '530821', '530822', '530823', '530824', '530825', '530826', '530827', '530828', '530829', '530900', '530902', '530921', '530922', '530923', '530924', '530925', '530926', '530927', '532300', '532301', '532322', '532323', '532324', '532325', '532326', '532327', '532328', '532329', '532331', '532500', '532501', '532502', '532503', '532504', '532523', '532524', '532525', '532527', '532528', '532529', '532530', '532531', '532532', '532600', '532601', '532622', '532623', '532624', '532625', '532626', '532627', '532628', '532800', '532801', '532822', '532823', '532900', '532901', '532922', '532923', '532924', '532925', '532926', '532927', '532928', '532929', '532930', '532931', '532932', '533100', '533102', '533103', '533122', '533123', '533124', '533300', '533301', '533323', '533324', '533325', '533400', '533401', '533422', '533423', '540000', '540100', '540102', '540103', '540104', '540121', '540122', '540123', '540124', '540127', '540200', '540202', '540221', '540222', '540223', '540224', '540225', '540226', '540227', '540228', '540229', '540230', '540231', '540232', '540233', '540234', '540235', '540236', '540237', '540300', '540302', '540321', '540322', '540323', '540324', '540325', '540326', '540327', '540328', '540329', '540330', '540400', '540402', '540421', '540422', '540423', '540424', '540425', '540426', '540500', '540502', '540521', '540522', '540523', '540524', '540525', '540526', '540527', '540528', '540529', '540530', '540531', '540600', '540602', '540621', '540622', '540623', '540624', '540625', '540626', '540627', '540628', '540629', '540630', '542500', '542521', '542522', '542523', '542524', '542525', '542526', '542527', '610000', '610100', '610102', '610103', '610104', '610111', '610112', '610113', '610114', '610115', '610116', '610117', '610118', '610122', '610124', '610200', '610202', '610203', '610204', '610222', '610300', '610302', '610303', '610304', '610322', '610323', '610324', '610326', '610327', '610328', '610329', '610330', '610331', '610400', '610402', '610403', '610404', '610422', '610423', '610424', '610425', '610426', '610427', '610428', '610429', '610430', '610431', '610481', '610500', '610502', '610503', '610522', '610523', '610524', '610525', '610526', '610527', '610528', '610581', '610582', '610600', '610602', '610603', '610621', '610622', '610623', '610625', '610626', '610627', '610628', '610629', '610630', '610631', '610632', '610700', '610702', '610703', '610722', '610723', '610724', '610725', '610726', '610727', '610728', '610729', '610730', '610800', '610802', '610803', '610822', '610824', '610825', '610826', '610827', '610828', '610829', '610830', '610831', '610881', '610900', '610902', '610921', '610922', '610923', '610924', '610925', '610926', '610927', '610928', '610929', '611000', '611002', '611021', '611022', '611023', '611024', '611025', '611026', '620000', '620100', '620102', '620103', '620104', '620105', '620111', '620121', '620122', '620123', '620200', '620300', '620302', '620321', '620400', '620402', '620403', '620421', '620422', '620423', '620500', '620502', '620503', '620521', '620522', '620523', '620524', '620525', '620600', '620602', '620621', '620622', '620623', '620700', '620702', '620721', '620722', '620723', '620724', '620725', '620800', '620802', '620821', '620822', '620823', '620824', '620825', '620826', '620900', '620902', '620921', '620922', '620923', '620924', '620981', '620982', '621000', '621002', '621021', '621022', '621023', '621024', '621025', '621026', '621027', '621100', '621102', '621121', '621122', '621123', '621124', '621125', '621126', '621200', '621202', '621221', '621222', '621223', '621224', '621225', '621226', '621227', '621228', '622900', '622901', '622921', '622922', '622923', '622924', '622925', '622926', '622927', '623000', '623001', '623021', '623022', '623023', '623024', '623025', '623026', '623027', '630000', '630100', '630102', '630103', '630104', '630105', '630121', '630122', '630123', '630200', '630202', '630203', '630222', '630223', '630224', '630225', '632200', '632221', '632222', '632223', '632224', '632300', '632321', '632322', '632323', '632324', '632500', '632521', '632522', '632523', '632524', '632525', '632600', '632621', '632622', '632623', '632624', '632625', '632626', '632700', '632701', '632722', '632723', '632724', '632725', '632726', '632800', '632801', '632802', '632821', '632822', '632823', '640000', '640100', '640104', '640105', '640106', '640121', '640122', '640181', '640200', '640202', '640205', '640221', '640300', '640302', '640303', '640323', '640324', '640381', '640400', '640402', '640422', '640423', '640424', '640425', '640500', '640502', '640521', '640522', '650000', '650100', '650102', '650103', '650104', '650105', '650106', '650107', '650109', '650121', '650200', '650202', '650203', '650204', '650205', '650400', '650402', '650421', '650422', '650500', '650502', '650521', '650522', '652300', '652301', '652302', '652323', '652324', '652325', '652327', '652328', '652700', '652701', '652702', '652722', '652723', '652800', '652801', '652822', '652823', '652824', '652825', '652826', '652827', '652828', '652829', '652900', '652901', '652922', '652923', '652924', '652925', '652926', '652927', '652928', '652929', '653000', '653001', '653022', '653023', '653024', '653100', '653101', '653121', '653122', '653123', '653124', '653125', '653126', '653127', '653128', '653129', '653130', '653131', '653200', '653201', '653221', '653222', '653223', '653224', '653225', '653226', '653227', '654000', '654002', '654003', '654004', '654021', '654022', '654023', '654024', '654025', '654026', '654027', '654028', '654200', '654201', '654202', '654221', '654223', '654224', '654225', '654226', '654300', '654301', '654321', '654322', '654323', '654324', '654325', '654326', '659001', '659002', '659003', '659004', '659005', '659006', '659007', '659008', '659009', '710000', '810000', '820000']
        allareas = ['北京市','东城区','西城区','朝阳区','丰台区','石景山区','海淀区','门头沟区','房山区','通州区','顺义区','昌平区','大兴区','怀柔区','平谷区','密云区','延庆区','天津市','和平区','河东区','河西区','南开区','河北区','红桥区','东丽区','西青区','津南区','北辰区','武清区','宝坻区','滨海新区','宁河区','静海区','蓟州区','河北省','石家庄市','长安区','桥西区','新华区','井陉矿区','裕华区','藁城区','鹿泉区','栾城区','井陉县','正定县','行唐县','灵寿县','高邑县','深泽县','赞皇县','无极县','平山县','元氏县','赵县','辛集市','晋州市','新乐市','唐山市','路南区','路北区','古冶区','开平区','丰南区','丰润区','曹妃甸区','滦县','滦南县','乐亭县','迁西县','玉田县','遵化市','迁安市','秦皇岛市','海港区','山海关区','北戴河区','抚宁区','青龙满族自治县','昌黎县','卢龙县','邯郸市','邯山区','丛台区','复兴区','峰峰矿区','肥乡区','永年区','临漳县','成安县','大名县','涉县','磁县','邱县','鸡泽县','广平县','馆陶县','魏县','曲周县','武安市','邢台市','桥东区','桥西区','邢台县','临城县','内丘县','柏乡县','隆尧县','任县','南和县','宁晋县','巨鹿县','新河县','广宗县','平乡县','威县','清河县','临西县','南宫市','沙河市','保定市','竞秀区','莲池区','满城区','清苑区','徐水区','涞水县','阜平县','定兴县','唐县','高阳县','容城县','涞源县','望都县','安新县','易县','曲阳县','蠡县','顺平县','博野县','雄县','涿州市','定州市','安国市','高碑店市','张家口市','桥东区','桥西区','宣化区','下花园区','万全区','崇礼区','张北县','康保县','沽源县','尚义县','蔚县','阳原县','怀安县','怀来县','涿鹿县','赤城县','承德市','双桥区','双滦区','鹰手营子矿区','承德县','兴隆县','滦平县','隆化县','丰宁满族自治县','宽城满族自治县','围场满族蒙古族自治县','平泉市','沧州市','新华区','运河区','沧县','青县','东光县','海兴县','盐山县','肃宁县','南皮县','吴桥县','献县','孟村回族自治县','泊头市','任丘市','黄骅市','河间市','廊坊市','安次区','广阳区','固安县','永清县','香河县','大城县','文安县','大厂回族自治县','霸州市','三河市','衡水市','桃城区','冀州区','枣强县','武邑县','武强县','饶阳县','安平县','故城县','景县','阜城县','深州市','山西省','太原市','小店区','迎泽区','杏花岭区','尖草坪区','万柏林区','晋源区','清徐县','阳曲县','娄烦县','古交市','大同市','城区','矿区','南郊区','新荣区','阳高县','天镇县','广灵县','灵丘县','浑源县','左云县','大同县','阳泉市','城区','矿区','郊区','平定县','盂县','长治市','城区','郊区','长治县','襄垣县','屯留县','平顺县','黎城县','壶关县','长子县','武乡县','沁县','沁源县','潞城市','晋城市','城区','沁水县','阳城县','陵川县','泽州县','高平市','朔州市','朔城区','平鲁区','山阴县','应县','右玉县','怀仁县','晋中市','榆次区','榆社县','左权县','和顺县','昔阳县','寿阳县','太谷县','祁县','平遥县','灵石县','介休市','运城市','盐湖区','临猗县','万荣县','闻喜县','稷山县','新绛县','绛县','垣曲县','夏县','平陆县','芮城县','永济市','河津市','忻州市','忻府区','定襄县','五台县','代县','繁峙县','宁武县','静乐县','神池县','五寨县','岢岚县','河曲县','保德县','偏关县','原平市','临汾市','尧都区','曲沃县','翼城县','襄汾县','洪洞县','古县','安泽县','浮山县','吉县','乡宁县','大宁县','隰县','永和县','蒲县','汾西县','侯马市','霍州市','吕梁市','离石区','文水县','交城县','兴县','临县','柳林县','石楼县','岚县','方山县','中阳县','交口县','孝义市','汾阳市','内蒙古自治区','呼和浩特市','新城区','回民区','玉泉区','赛罕区','土默特左旗','托克托县','和林格尔县','清水河县','武川县','包头市','东河区','昆都仑区','青山区','石拐区','白云鄂博矿区','九原区','土默特右旗','固阳县','达尔罕茂明安联合旗','乌海市','海勃湾区','海南区','乌达区','赤峰市','红山区','元宝山区','松山区','阿鲁科尔沁旗','巴林左旗','巴林右旗','林西县','克什克腾旗','翁牛特旗','喀喇沁旗','宁城县','敖汉旗','通辽市','科尔沁区','科尔沁左翼中旗','科尔沁左翼后旗','开鲁县','库伦旗','奈曼旗','扎鲁特旗','霍林郭勒市','鄂尔多斯市','东胜区','康巴什区','达拉特旗','准格尔旗','鄂托克前旗','鄂托克旗','杭锦旗','乌审旗','伊金霍洛旗','呼伦贝尔市','海拉尔区','扎赉诺尔区','阿荣旗','莫力达瓦达斡尔族自治旗','鄂伦春自治旗','鄂温克族自治旗','陈巴尔虎旗','新巴尔虎左旗','新巴尔虎右旗','满洲里市','牙克石市','扎兰屯市','额尔古纳市','根河市','巴彦淖尔市','临河区','五原县','磴口县','乌拉特前旗','乌拉特中旗','乌拉特后旗','杭锦后旗','乌兰察布市','集宁区','卓资县','化德县','商都县','兴和县','凉城县','察哈尔右翼前旗','察哈尔右翼中旗','察哈尔右翼后旗','四子王旗','丰镇市','兴安盟','乌兰浩特市','阿尔山市','科尔沁右翼前旗','科尔沁右翼中旗','扎赉特旗','突泉县','锡林郭勒盟','二连浩特市','锡林浩特市','阿巴嘎旗','苏尼特左旗','苏尼特右旗','东乌珠穆沁旗','西乌珠穆沁旗','太仆寺旗','镶黄旗','正镶白旗','正蓝旗','多伦县','阿拉善盟','阿拉善左旗','阿拉善右旗','额济纳旗','辽宁省','沈阳市','和平区','沈河区','大东区','皇姑区','铁西区','苏家屯区','浑南区','沈北新区','于洪区','辽中区','康平县','法库县','新民市','大连市','中山区','西岗区','沙河口区','甘井子区','旅顺口区','金州区','普兰店区','长海县','瓦房店市','庄河市','鞍山市','铁东区','铁西区','立山区','千山区','台安县','岫岩满族自治县','海城市','抚顺市','新抚区','东洲区','望花区','顺城区','抚顺县','新宾满族自治县','清原满族自治县','本溪市','平山区','溪湖区','明山区','南芬区','本溪满族自治县','桓仁满族自治县','丹东市','元宝区','振兴区','振安区','宽甸满族自治县','东港市','凤城市','锦州市','古塔区','凌河区','太和区','黑山县','义县','凌海市','北镇市','营口市','站前区','西市区','鲅鱼圈区','老边区','盖州市','大石桥市','阜新市','海州区','新邱区','太平区','清河门区','细河区','阜新蒙古族自治县','彰武县','辽阳市','白塔区','文圣区','宏伟区','弓长岭区','太子河区','辽阳县','灯塔市','盘锦市','双台子区','兴隆台区','大洼区','盘山县','铁岭市','银州区','清河区','铁岭县','西丰县','昌图县','调兵山市','开原市','朝阳市','双塔区','龙城区','朝阳县','建平县','喀喇沁左翼蒙古族自治县','北票市','凌源市','葫芦岛市','连山区','龙港区','南票区','绥中县','建昌县','兴城市','吉林省','长春市','南关区','宽城区','朝阳区','二道区','绿园区','双阳区','九台区','农安县','榆树市','德惠市','吉林市','昌邑区','龙潭区','船营区','丰满区','永吉县','蛟河市','桦甸市','舒兰市','磐石市','四平市','铁西区','铁东区','梨树县','伊通满族自治县','公主岭市','双辽市','辽源市','龙山区','西安区','东丰县','东辽县','通化市','东昌区','二道江区','通化县','辉南县','柳河县','梅河口市','集安市','白山市','浑江区','江源区','抚松县','靖宇县','长白朝鲜族自治县','临江市','松原市','宁江区','前郭尔罗斯蒙古族自治县','长岭县','乾安县','扶余市','白城市','洮北区','镇赉县','通榆县','洮南市','大安市','延边朝鲜族自治州','延吉市','图们市','敦化市','珲春市','龙井市','和龙市','汪清县','安图县','黑龙江省','哈尔滨市','道里区','南岗区','道外区','平房区','松北区','香坊区','呼兰区','阿城区','双城区','依兰县','方正县','宾县','巴彦县','木兰县','通河县','延寿县','尚志市','五常市','齐齐哈尔市','龙沙区','建华区','铁锋区','昂昂溪区','富拉尔基区','碾子山区','梅里斯达斡尔族区','龙江县','依安县','泰来县','甘南县','富裕县','克山县','克东县','拜泉县','讷河市','鸡西市','鸡冠区','恒山区','滴道区','梨树区','城子河区','麻山区','鸡东县','虎林市','密山市','鹤岗市','向阳区','工农区','南山区','兴安区','东山区','兴山区','萝北县','绥滨县','双鸭山市','尖山区','岭东区','四方台区','宝山区','集贤县','友谊县','宝清县','饶河县','大庆市','萨尔图区','龙凤区','让胡路区','红岗区','大同区','肇州县','肇源县','林甸县','杜尔伯特蒙古族自治县','伊春市','伊春区','南岔区','友好区','西林区','翠峦区','新青区','美溪区','金山屯区','五营区','乌马河区','汤旺河区','带岭区','乌伊岭区','红星区','上甘岭区','嘉荫县','铁力市','佳木斯市','向阳区','前进区','东风区','郊区','桦南县','桦川县','汤原县','同江市','富锦市','抚远市','七台河市','新兴区','桃山区','茄子河区','勃利县','牡丹江市','东安区','阳明区','爱民区','西安区','林口县','绥芬河市','海林市','宁安市','穆棱市','东宁市','黑河市','爱辉区','嫩江县','逊克县','孙吴县','北安市','五大连池市','绥化市','北林区','望奎县','兰西县','青冈县','庆安县','明水县','绥棱县','安达市','肇东市','海伦市','大兴安岭地区','呼玛县','塔河县','漠河县','上海市','黄浦区','徐汇区','长宁区','静安区','普陀区','虹口区','杨浦区','闵行区','宝山区','嘉定区','浦东新区','金山区','松江区','青浦区','奉贤区','崇明区','江苏省','南京市','玄武区','秦淮区','建邺区','鼓楼区','浦口区','栖霞区','雨花台区','江宁区','六合区','溧水区','高淳区','无锡市','锡山区','惠山区','滨湖区','梁溪区','新吴区','江阴市','宜兴市','徐州市','鼓楼区','云龙区','贾汪区','泉山区','铜山区','丰县','沛县','睢宁县','新沂市','邳州市','常州市','天宁区','钟楼区','新北区','武进区','金坛区','溧阳市','苏州市','虎丘区','吴中区','相城区','姑苏区','吴江区','常熟市','张家港市','昆山市','太仓市','南通市','崇川区','港闸区','通州区','海安县','如东县','启东市','如皋市','海门市','连云港市','连云区','海州区','赣榆区','东海县','灌云县','灌南县','淮安市','淮安区','淮阴区','清江浦区','洪泽区','涟水县','盱眙县','金湖县','盐城市','亭湖区','盐都区','大丰区','响水县','滨海县','阜宁县','射阳县','建湖县','东台市','扬州市','广陵区','邗江区','江都区','宝应县','仪征市','高邮市','镇江市','京口区','润州区','丹徒区','丹阳市','扬中市','句容市','泰州市','海陵区','高港区','姜堰区','兴化市','靖江市','泰兴市','宿迁市','宿城区','宿豫区','沭阳县','泗阳县','泗洪县','浙江省','杭州市','上城区','下城区','江干区','拱墅区','西湖区','滨江区','萧山区','余杭区','富阳区','临安区','桐庐县','淳安县','建德市','宁波市','海曙区','江北区','北仑区','镇海区','鄞州区','奉化区','象山县','宁海县','余姚市','慈溪市','温州市','鹿城区','龙湾区','瓯海区','洞头区','永嘉县','平阳县','苍南县','文成县','泰顺县','瑞安市','乐清市','嘉兴市','南湖区','秀洲区','嘉善县','海盐县','海宁市','平湖市','桐乡市','湖州市','吴兴区','南浔区','德清县','长兴县','安吉县','绍兴市','越城区','柯桥区','上虞区','新昌县','诸暨市','嵊州市','金华市','婺城区','金东区','武义县','浦江县','磐安县','兰溪市','义乌市','东阳市','永康市','衢州市','柯城区','衢江区','常山县','开化县','龙游县','江山市','舟山市','定海区','普陀区','岱山县','嵊泗县','台州市','椒江区','黄岩区','路桥区','三门县','天台县','仙居县','温岭市','临海市','玉环市','丽水市','莲都区','青田县','缙云县','遂昌县','松阳县','云和县','庆元县','景宁畲族自治县','龙泉市','安徽省','合肥市','瑶海区','庐阳区','蜀山区','包河区','长丰县','肥东县','肥西县','庐江县','巢湖市','芜湖市','镜湖区','弋江区','鸠江区','三山区','芜湖县','繁昌县','南陵县','无为县','蚌埠市','龙子湖区','蚌山区','禹会区','淮上区','怀远县','五河县','固镇县','淮南市','大通区','田家庵区','谢家集区','八公山区','潘集区','凤台县','寿县','马鞍山市','花山区','雨山区','博望区','当涂县','含山县','和县','淮北市','杜集区','相山区','烈山区','濉溪县','铜陵市','铜官区','义安区','郊区','枞阳县','安庆市','迎江区','大观区','宜秀区','怀宁县','潜山县','太湖县','宿松县','望江县','岳西县','桐城市','黄山市','屯溪区','黄山区','徽州区','歙县','休宁县','黟县','祁门县','滁州市','琅琊区','南谯区','来安县','全椒县','定远县','凤阳县','天长市','明光市','阜阳市','颍州区','颍东区','颍泉区','临泉县','太和县','阜南县','颍上县','界首市','宿州市','埇桥区','砀山县','萧县','灵璧县','泗县','六安市','金安区','裕安区','叶集区','霍邱县','舒城县','金寨县','霍山县','亳州市','谯城区','涡阳县','蒙城县','利辛县','池州市','贵池区','东至县','石台县','青阳县','宣城市','宣州区','郎溪县','广德县','泾县','绩溪县','旌德县','宁国市','福建省','福州市','鼓楼区','台江区','仓山区','马尾区','晋安区','长乐区','闽侯县','连江县','罗源县','闽清县','永泰县','平潭县','福清市','厦门市','思明区','海沧区','湖里区','集美区','同安区','翔安区','莆田市','城厢区','涵江区','荔城区','秀屿区','仙游县','三明市','梅列区','三元区','明溪县','清流县','宁化县','大田县','尤溪县','沙县','将乐县','泰宁县','建宁县','永安市','泉州市','鲤城区','丰泽区','洛江区','泉港区','惠安县','安溪县','永春县','德化县','金门县','石狮市','晋江市','南安市','漳州市','芗城区','龙文区','云霄县','漳浦县','诏安县','长泰县','东山县','南靖县','平和县','华安县','龙海市','南平市','延平区','建阳区','顺昌县','浦城县','光泽县','松溪县','政和县','邵武市','武夷山市','建瓯市','龙岩市','新罗区','永定区','长汀县','上杭县','武平县','连城县','漳平市','宁德市','蕉城区','霞浦县','古田县','屏南县','寿宁县','周宁县','柘荣县','福安市','福鼎市','江西省','南昌市','东湖区','西湖区','青云谱区','湾里区','青山湖区','新建区','南昌县','安义县','进贤县','景德镇市','昌江区','珠山区','浮梁县','乐平市','萍乡市','安源区','湘东区','莲花县','上栗县','芦溪县','九江市','濂溪区','浔阳区','柴桑区','武宁县','修水县','永修县','德安县','都昌县','湖口县','彭泽县','瑞昌市','共青城市','庐山市','新余市','渝水区','分宜县','鹰潭市','月湖区','余江县','贵溪市','赣州市','章贡区','南康区','赣县区','信丰县','大余县','上犹县','崇义县','安远县','龙南县','定南县','全南县','宁都县','于都县','兴国县','会昌县','寻乌县','石城县','瑞金市','吉安市','吉州区','青原区','吉安县','吉水县','峡江县','新干县','永丰县','泰和县','遂川县','万安县','安福县','永新县','井冈山市','宜春市','袁州区','奉新县','万载县','上高县','宜丰县','靖安县','铜鼓县','丰城市','樟树市','高安市','抚州市','临川区','东乡区','南城县','黎川县','南丰县','崇仁县','乐安县','宜黄县','金溪县','资溪县','广昌县','上饶市','信州区','广丰区','上饶县','玉山县','铅山县','横峰县','弋阳县','余干县','鄱阳县','万年县','婺源县','德兴市','山东省','济南市','历下区','市中区','槐荫区','天桥区','历城区','长清区','章丘区','平阴县','济阳县','商河县','青岛市','市南区','市北区','黄岛区','崂山区','李沧区','城阳区','即墨区','胶州市','平度市','莱西市','淄博市','淄川区','张店区','博山区','临淄区','周村区','桓台县','高青县','沂源县','枣庄市','市中区','薛城区','峄城区','台儿庄区','山亭区','滕州市','东营市','东营区','河口区','垦利区','利津县','广饶县','烟台市','芝罘区','福山区','牟平区','莱山区','长岛县','龙口市','莱阳市','莱州市','蓬莱市','招远市','栖霞市','海阳市','潍坊市','潍城区','寒亭区','坊子区','奎文区','临朐县','昌乐县','青州市','诸城市','寿光市','安丘市','高密市','昌邑市','济宁市','任城区','兖州区','微山县','鱼台县','金乡县','嘉祥县','汶上县','泗水县','梁山县','曲阜市','邹城市','泰安市','泰山区','岱岳区','宁阳县','东平县','新泰市','肥城市','威海市','环翠区','文登区','荣成市','乳山市','日照市','东港区','岚山区','五莲县','莒县','莱芜市','莱城区','钢城区','临沂市','兰山区','罗庄区','河东区','沂南县','郯城县','沂水县','兰陵县','费县','平邑县','莒南县','蒙阴县','临沭县','德州市','德城区','陵城区','宁津县','庆云县','临邑县','齐河县','平原县','夏津县','武城县','乐陵市','禹城市','聊城市','东昌府区','阳谷县','莘县','茌平县','东阿县','冠县','高唐县','临清市','滨州市','滨城区','沾化区','惠民县','阳信县','无棣县','博兴县','邹平县','菏泽市','牡丹区','定陶区','曹县','单县','成武县','巨野县','郓城县','鄄城县','东明县','河南省','郑州市','中原区','二七区','管城回族区','金水区','上街区','惠济区','中牟县','巩义市','荥阳市','新密市','新郑市','登封市','开封市','龙亭区','顺河回族区','鼓楼区','禹王台区','祥符区','杞县','通许县','尉氏县','兰考县','洛阳市','老城区','西工区','瀍河回族区','涧西区','吉利区','洛龙区','孟津县','新安县','栾川县','嵩县','汝阳县','宜阳县','洛宁县','伊川县','偃师市','平顶山市','新华区','卫东区','石龙区','湛河区','宝丰县','叶县','鲁山县','郏县','舞钢市','汝州市','安阳市','文峰区','北关区','殷都区','龙安区','安阳县','汤阴县','滑县','内黄县','林州市','鹤壁市','鹤山区','山城区','淇滨区','浚县','淇县','新乡市','红旗区','卫滨区','凤泉区','牧野区','新乡县','获嘉县','原阳县','延津县','封丘县','长垣县','卫辉市','辉县市','焦作市','解放区','中站区','马村区','山阳区','修武县','博爱县','武陟县','温县','沁阳市','孟州市','濮阳市','华龙区','清丰县','南乐县','范县','台前县','濮阳县','许昌市','魏都区','建安区','鄢陵县','襄城县','禹州市','长葛市','漯河市','源汇区','郾城区','召陵区','舞阳县','临颍县','三门峡市','湖滨区','陕州区','渑池县','卢氏县','义马市','灵宝市','南阳市','宛城区','卧龙区','南召县','方城县','西峡县','镇平县','内乡县','淅川县','社旗县','唐河县','新野县','桐柏县','邓州市','商丘市','梁园区','睢阳区','民权县','睢县','宁陵县','柘城县','虞城县','夏邑县','永城市','信阳市','浉河区','平桥区','罗山县','光山县','新县','商城县','固始县','潢川县','淮滨县','息县','周口市','川汇区','扶沟县','西华县','商水县','沈丘县','郸城县','淮阳县','太康县','鹿邑县','项城市','驻马店市','驿城区','西平县','上蔡县','平舆县','正阳县','确山县','泌阳县','汝南县','遂平县','新蔡县','济源市','湖北省','武汉市','江岸区','江汉区','硚口区','汉阳区','武昌区','青山区','洪山区','东西湖区','汉南区','蔡甸区','江夏区','黄陂区','新洲区','黄石市','黄石港区','西塞山区','下陆区','铁山区','阳新县','大冶市','十堰市','茅箭区','张湾区','郧阳区','郧西县','竹山县','竹溪县','房县','丹江口市','宜昌市','西陵区','伍家岗区','点军区','猇亭区','夷陵区','远安县','兴山县','秭归县','长阳土家族自治县','五峰土家族自治县','宜都市','当阳市','枝江市','襄阳市','襄城区','樊城区','襄州区','南漳县','谷城县','保康县','老河口市','枣阳市','宜城市','鄂州市','梁子湖区','华容区','鄂城区','荆门市','东宝区','掇刀区','京山县','沙洋县','钟祥市','孝感市','孝南区','孝昌县','大悟县','云梦县','应城市','安陆市','汉川市','荆州市','沙市区','荆州区','公安县','监利县','江陵县','石首市','洪湖市','松滋市','黄冈市','黄州区','团风县','红安县','罗田县','英山县','浠水县','蕲春县','黄梅县','麻城市','武穴市','咸宁市','咸安区','嘉鱼县','通城县','崇阳县','通山县','赤壁市','随州市','曾都区','随县','广水市','恩施土家族苗族自治州','恩施市','利川市','建始县','巴东县','宣恩县','咸丰县','来凤县','鹤峰县','仙桃市','潜江市','天门市','神农架林区','湖南省','长沙市','芙蓉区','天心区','岳麓区','开福区','雨花区','望城区','长沙县','浏阳市','宁乡市','株洲市','荷塘区','芦淞区','石峰区','天元区','株洲县','攸县','茶陵县','炎陵县','醴陵市','湘潭市','雨湖区','岳塘区','湘潭县','湘乡市','韶山市','衡阳市','珠晖区','雁峰区','石鼓区','蒸湘区','南岳区','衡阳县','衡南县','衡山县','衡东县','祁东县','耒阳市','常宁市','邵阳市','双清区','大祥区','北塔区','邵东县','新邵县','邵阳县','隆回县','洞口县','绥宁县','新宁县','城步苗族自治县','武冈市','岳阳市','岳阳楼区','云溪区','君山区','岳阳县','华容县','湘阴县','平江县','汨罗市','临湘市','常德市','武陵区','鼎城区','安乡县','汉寿县','澧县','临澧县','桃源县','石门县','津市市','张家界市','永定区','武陵源区','慈利县','桑植县','益阳市','资阳区','赫山区','南县','桃江县','安化县','沅江市','郴州市','北湖区','苏仙区','桂阳县','宜章县','永兴县','嘉禾县','临武县','汝城县','桂东县','安仁县','资兴市','永州市','零陵区','冷水滩区','祁阳县','东安县','双牌县','道县','江永县','宁远县','蓝山县','新田县','江华瑶族自治县','怀化市','鹤城区','中方县','沅陵县','辰溪县','溆浦县','会同县','麻阳苗族自治县','新晃侗族自治县','芷江侗族自治县','靖州苗族侗族自治县','通道侗族自治县','洪江市','娄底市','娄星区','双峰县','新化县','冷水江市','涟源市','湘西土家族苗族自治州','吉首市','泸溪县','凤凰县','花垣县','保靖县','古丈县','永顺县','龙山县','广东省','广州市','荔湾区','越秀区','海珠区','天河区','白云区','黄埔区','番禺区','花都区','南沙区','从化区','增城区','韶关市','武江区','浈江区','曲江区','始兴县','仁化县','翁源县','乳源瑶族自治县','新丰县','乐昌市','南雄市','深圳市','罗湖区','福田区','南山区','宝安区','龙岗区','盐田区','龙华区','坪山区','珠海市','香洲区','斗门区','金湾区','汕头市','龙湖区','金平区','濠江区','潮阳区','潮南区','澄海区','南澳县','佛山市','禅城区','南海区','顺德区','三水区','高明区','江门市','蓬江区','江海区','新会区','台山市','开平市','鹤山市','恩平市','湛江市','赤坎区','霞山区','坡头区','麻章区','遂溪县','徐闻县','廉江市','雷州市','吴川市','茂名市','茂南区','电白区','高州市','化州市','信宜市','肇庆市','端州区','鼎湖区','高要区','广宁县','怀集县','封开县','德庆县','四会市','惠州市','惠城区','惠阳区','博罗县','惠东县','龙门县','梅州市','梅江区','梅县区','大埔县','丰顺县','五华县','平远县','蕉岭县','兴宁市','汕尾市','城区','海丰县','陆河县','陆丰市','河源市','源城区','紫金县','龙川县','连平县','和平县','东源县','阳江市','江城区','阳东区','阳西县','阳春市','清远市','清城区','清新区','佛冈县','阳山县','连山壮族瑶族自治县','连南瑶族自治县','英德市','连州市','东莞市','中山市','潮州市','湘桥区','潮安区','饶平县','揭阳市','榕城区','揭东区','揭西县','惠来县','普宁市','云浮市','云城区','云安区','新兴县','郁南县','罗定市','广西壮族自治区','南宁市','兴宁区','青秀区','江南区','西乡塘区','良庆区','邕宁区','武鸣区','隆安县','马山县','上林县','宾阳县','横县','柳州市','城中区','鱼峰区','柳南区','柳北区','柳江区','柳城县','鹿寨县','融安县','融水苗族自治县','三江侗族自治县','桂林市','秀峰区','叠彩区','象山区','七星区','雁山区','临桂区','阳朔县','灵川县','全州县','兴安县','永福县','灌阳县','龙胜各族自治县','资源县','平乐县','荔浦县','恭城瑶族自治县','梧州市','万秀区','长洲区','龙圩区','苍梧县','藤县','蒙山县','岑溪市','北海市','海城区','银海区','铁山港区','合浦县','防城港市','港口区','防城区','上思县','东兴市','钦州市','钦南区','钦北区','灵山县','浦北县','贵港市','港北区','港南区','覃塘区','平南县','桂平市','玉林市','玉州区','福绵区','容县','陆川县','博白县','兴业县','北流市','百色市','右江区','田阳县','田东县','平果县','德保县','那坡县','凌云县','乐业县','田林县','西林县','隆林各族自治县','靖西市','贺州市','八步区','平桂区','昭平县','钟山县','富川瑶族自治县','河池市','金城江区','宜州区','南丹县','天峨县','凤山县','东兰县','罗城仫佬族自治县','环江毛南族自治县','巴马瑶族自治县','都安瑶族自治县','大化瑶族自治县','来宾市','兴宾区','忻城县','象州县','武宣县','金秀瑶族自治县','合山市','崇左市','江州区','扶绥县','宁明县','龙州县','大新县','天等县','凭祥市','海南省','海口市','秀英区','龙华区','琼山区','美兰区','三亚市','海棠区','吉阳区','天涯区','崖州区','三沙市','儋州市','五指山市','琼海市','文昌市','万宁市','东方市','定安县','屯昌县','澄迈县','临高县','白沙黎族自治县','昌江黎族自治县','乐东黎族自治县','陵水黎族自治县','保亭黎族苗族自治县','琼中黎族苗族自治县','重庆市','万州区','涪陵区','渝中区','大渡口区','江北区','沙坪坝区','九龙坡区','南岸区','北碚区','綦江区','大足区','渝北区','巴南区','黔江区','长寿区','江津区','合川区','永川区','南川区','璧山区','铜梁区','潼南区','荣昌区','开州区','梁平区','武隆区','城口县','丰都县','垫江县','忠县','云阳县','奉节县','巫山县','巫溪县','石柱土家族自治县','秀山土家族苗族自治县','酉阳土家族苗族自治县','彭水苗族土家族自治县','四川省','成都市','锦江区','青羊区','金牛区','武侯区','成华区','龙泉驿区','青白江区','新都区','温江区','双流区','郫都区','金堂县','大邑县','蒲江县','新津县','都江堰市','彭州市','邛崃市','崇州市','简阳市','自贡市','自流井区','贡井区','大安区','沿滩区','荣县','富顺县','攀枝花市','东区','西区','仁和区','米易县','盐边县','泸州市','江阳区','纳溪区','龙马潭区','泸县','合江县','叙永县','古蔺县','德阳市','旌阳区','罗江区','中江县','广汉市','什邡市','绵竹市','绵阳市','涪城区','游仙区','安州区','三台县','盐亭县','梓潼县','北川羌族自治县','平武县','江油市','广元市','利州区','昭化区','朝天区','旺苍县','青川县','剑阁县','苍溪县','遂宁市','船山区','安居区','蓬溪县','射洪县','大英县','内江市','市中区','东兴区','威远县','资中县','隆昌市','乐山市','市中区','沙湾区','五通桥区','金口河区','犍为县','井研县','夹江县','沐川县','峨边彝族自治县','马边彝族自治县','峨眉山市','南充市','顺庆区','高坪区','嘉陵区','南部县','营山县','蓬安县','仪陇县','西充县','阆中市','眉山市','东坡区','彭山区','仁寿县','洪雅县','丹棱县','青神县','宜宾市','翠屏区','南溪区','宜宾县','江安县','长宁县','高县','珙县','筠连县','兴文县','屏山县','广安市','广安区','前锋区','岳池县','武胜县','邻水县','华蓥市','达州市','通川区','达川区','宣汉县','开江县','大竹县','渠县','万源市','雅安市','雨城区','名山区','荥经县','汉源县','石棉县','天全县','芦山县','宝兴县','巴中市','巴州区','恩阳区','通江县','南江县','平昌县','资阳市','雁江区','安岳县','乐至县','阿坝藏族羌族自治州','马尔康市','汶川县','理县','茂县','松潘县','九寨沟县','金川县','小金县','黑水县','壤塘县','阿坝县','若尔盖县','红原县','甘孜藏族自治州','康定市','泸定县','丹巴县','九龙县','雅江县','道孚县','炉霍县','甘孜县','新龙县','德格县','白玉县','石渠县','色达县','理塘县','巴塘县','乡城县','稻城县','得荣县','凉山彝族自治州','西昌市','木里藏族自治县','盐源县','德昌县','会理县','会东县','宁南县','普格县','布拖县','金阳县','昭觉县','喜德县','冕宁县','越西县','甘洛县','美姑县','雷波县','贵州省','贵阳市','南明区','云岩区','花溪区','乌当区','白云区','观山湖区','开阳县','息烽县','修文县','清镇市','六盘水市','钟山区','六枝特区','水城县','盘州市','遵义市','红花岗区','汇川区','播州区','桐梓县','绥阳县','正安县','道真仡佬族苗族自治县','务川仡佬族苗族自治县','凤冈县','湄潭县','余庆县','习水县','赤水市','仁怀市','安顺市','西秀区','平坝区','普定县','镇宁布依族苗族自治县','关岭布依族苗族自治县','紫云苗族布依族自治县','毕节市','七星关区','大方县','黔西县','金沙县','织金县','纳雍县','威宁彝族回族苗族自治县','赫章县','铜仁市','碧江区','万山区','江口县','玉屏侗族自治县','石阡县','思南县','印江土家族苗族自治县','德江县','沿河土家族自治县','松桃苗族自治县','黔西南布依族苗族自治州','兴义市','兴仁县','普安县','晴隆县','贞丰县','望谟县','册亨县','安龙县','黔东南苗族侗族自治州','凯里市','黄平县','施秉县','三穗县','镇远县','岑巩县','天柱县','锦屏县','剑河县','台江县','黎平县','榕江县','从江县','雷山县','麻江县','丹寨县','黔南布依族苗族自治州','都匀市','福泉市','荔波县','贵定县','瓮安县','独山县','平塘县','罗甸县','长顺县','龙里县','惠水县','三都水族自治县','云南省','昆明市','五华区','盘龙区','官渡区','西山区','东川区','呈贡区','晋宁区','富民县','宜良县','石林彝族自治县','嵩明县','禄劝彝族苗族自治县','寻甸回族彝族自治县','安宁市','曲靖市','麒麟区','沾益区','马龙县','陆良县','师宗县','罗平县','富源县','会泽县','宣威市','玉溪市','红塔区','江川区','澄江县','通海县','华宁县','易门县','峨山彝族自治县','新平彝族傣族自治县','元江哈尼族彝族傣族自治县','保山市','隆阳区','施甸县','龙陵县','昌宁县','腾冲市','昭通市','昭阳区','鲁甸县','巧家县','盐津县','大关县','永善县','绥江县','镇雄县','彝良县','威信县','水富县','丽江市','古城区','玉龙纳西族自治县','永胜县','华坪县','宁蒗彝族自治县','普洱市','思茅区','宁洱哈尼族彝族自治县','墨江哈尼族自治县','景东彝族自治县','景谷傣族彝族自治县','镇沅彝族哈尼族拉祜族自治县','江城哈尼族彝族自治县','孟连傣族拉祜族佤族自治县','澜沧拉祜族自治县','西盟佤族自治县','临沧市','临翔区','凤庆县','云县','永德县','镇康县','双江拉祜族佤族布朗族傣族自治县','耿马傣族佤族自治县','沧源佤族自治县','楚雄彝族自治州','楚雄市','双柏县','牟定县','南华县','姚安县','大姚县','永仁县','元谋县','武定县','禄丰县','红河哈尼族彝族自治州','个旧市','开远市','蒙自市','弥勒市','屏边苗族自治县','建水县','石屏县','泸西县','元阳县','红河县','金平苗族瑶族傣族自治县','绿春县','河口瑶族自治县','文山壮族苗族自治州','文山市','砚山县','西畴县','麻栗坡县','马关县','丘北县','广南县','富宁县','西双版纳傣族自治州','景洪市','勐海县','勐腊县','大理白族自治州','大理市','漾濞彝族自治县','祥云县','宾川县','弥渡县','南涧彝族自治县','巍山彝族回族自治县','永平县','云龙县','洱源县','剑川县','鹤庆县','德宏傣族景颇族自治州','瑞丽市','芒市','梁河县','盈江县','陇川县','怒江傈僳族自治州','泸水市','福贡县','贡山独龙族怒族自治县','兰坪白族普米族自治县','迪庆藏族自治州','香格里拉市','德钦县','维西傈僳族自治县','西藏自治区','拉萨市','城关区','堆龙德庆区','达孜区','林周县','当雄县','尼木县','曲水县','墨竹工卡县','日喀则市','桑珠孜区','南木林县','江孜县','定日县','萨迦县','拉孜县','昂仁县','谢通门县','白朗县','仁布县','康马县','定结县','仲巴县','亚东县','吉隆县','聂拉木县','萨嘎县','岗巴县','昌都市','卡若区','江达县','贡觉县','类乌齐县','丁青县','察雅县','八宿县','左贡县','芒康县','洛隆县','边坝县','林芝市','巴宜区','工布江达县','米林县','墨脱县','波密县','察隅县','朗县','山南市','乃东区','扎囊县','贡嘎县','桑日县','琼结县','曲松县','措美县','洛扎县','加查县','隆子县','错那县','浪卡子县','那曲市','色尼区','嘉黎县','比如县','聂荣县','安多县','申扎县','索县','班戈县','巴青县','尼玛县','双湖县','阿里地区','普兰县','札达县','噶尔县','日土县','革吉县','改则县','措勤县','陕西省','西安市','新城区','碑林区','莲湖区','灞桥区','未央区','雁塔区','阎良区','临潼区','长安区','高陵区','鄠邑区','蓝田县','周至县','铜川市','王益区','印台区','耀州区','宜君县','宝鸡市','渭滨区','金台区','陈仓区','凤翔县','岐山县','扶风县','眉县','陇县','千阳县','麟游县','凤县','太白县','咸阳市','秦都区','杨陵区','渭城区','三原县','泾阳县','乾县','礼泉县','永寿县','彬县','长武县','旬邑县','淳化县','武功县','兴平市','渭南市','临渭区','华州区','潼关县','大荔县','合阳县','澄城县','蒲城县','白水县','富平县','韩城市','华阴市','延安市','宝塔区','安塞区','延长县','延川县','子长县','志丹县','吴起县','甘泉县','富县','洛川县','宜川县','黄龙县','黄陵县','汉中市','汉台区','南郑区','城固县','洋县','西乡县','勉县','宁强县','略阳县','镇巴县','留坝县','佛坪县','榆林市','榆阳区','横山区','府谷县','靖边县','定边县','绥德县','米脂县','佳县','吴堡县','清涧县','子洲县','神木市','安康市','汉滨区','汉阴县','石泉县','宁陕县','紫阳县','岚皋县','平利县','镇坪县','旬阳县','白河县','商洛市','商州区','洛南县','丹凤县','商南县','山阳县','镇安县','柞水县','甘肃省','兰州市','城关区','七里河区','西固区','安宁区','红古区','永登县','皋兰县','榆中县','嘉峪关市','金昌市','金川区','永昌县','白银市','白银区','平川区','靖远县','会宁县','景泰县','天水市','秦州区','麦积区','清水县','秦安县','甘谷县','武山县','张家川回族自治县','武威市','凉州区','民勤县','古浪县','天祝藏族自治县','张掖市','甘州区','肃南裕固族自治县','民乐县','临泽县','高台县','山丹县','平凉市','崆峒区','泾川县','灵台县','崇信县','华亭县','庄浪县','静宁县','酒泉市','肃州区','金塔县','瓜州县','肃北蒙古族自治县','阿克塞哈萨克族自治县','玉门市','敦煌市','庆阳市','西峰区','庆城县','环县','华池县','合水县','正宁县','宁县','镇原县','定西市','安定区','通渭县','陇西县','渭源县','临洮县','漳县','岷县','陇南市','武都区','成县','文县','宕昌县','康县','西和县','礼县','徽县','两当县','临夏回族自治州','临夏市','临夏县','康乐县','永靖县','广河县','和政县','东乡族自治县','积石山保安族东乡族撒拉族自治县','甘南藏族自治州','合作市','临潭县','卓尼县','舟曲县','迭部县','玛曲县','碌曲县','夏河县','青海省','西宁市','城东区','城中区','城西区','城北区','大通回族土族自治县','湟中县','湟源县','海东市','乐都区','平安区','民和回族土族自治县','互助土族自治县','化隆回族自治县','循化撒拉族自治县','海北藏族自治州','门源回族自治县','祁连县','海晏县','刚察县','黄南藏族自治州','同仁县','尖扎县','泽库县','河南蒙古族自治县','海南藏族自治州','共和县','同德县','贵德县','兴海县','贵南县','果洛藏族自治州','玛沁县','班玛县','甘德县','达日县','久治县','玛多县','玉树藏族自治州','玉树市','杂多县','称多县','治多县','囊谦县','曲麻莱县','海西蒙古族藏族自治州','格尔木市','德令哈市','乌兰县','都兰县','天峻县','宁夏回族自治区','银川市','兴庆区','西夏区','金凤区','永宁县','贺兰县','灵武市','石嘴山市','大武口区','惠农区','平罗县','吴忠市','利通区','红寺堡区','盐池县','同心县','青铜峡市','固原市','原州区','西吉县','隆德县','泾源县','彭阳县','中卫市','沙坡头区','中宁县','海原县','新疆维吾尔自治区','乌鲁木齐市','天山区','沙依巴克区','新市区','水磨沟区','头屯河区','达坂城区','米东区','乌鲁木齐县','克拉玛依市','独山子区','克拉玛依区','白碱滩区','乌尔禾区','吐鲁番市','高昌区','鄯善县','托克逊县','哈密市','伊州区','巴里坤哈萨克自治县','伊吾县','昌吉回族自治州','昌吉市','阜康市','呼图壁县','玛纳斯县','奇台县','吉木萨尔县','木垒哈萨克自治县','博尔塔拉蒙古自治州','博乐市','阿拉山口市','精河县','温泉县','巴音郭楞蒙古自治州','库尔勒市','轮台县','尉犁县','若羌县','且末县','焉耆回族自治县','和静县','和硕县','博湖县','阿克苏地区','阿克苏市','温宿县','库车县','沙雅县','新和县','拜城县','乌什县','阿瓦提县','柯坪县','克孜勒苏柯尔克孜自治州','阿图什市','阿克陶县','阿合奇县','乌恰县','喀什地区','喀什市','疏附县','疏勒县','英吉沙县','泽普县','莎车县','叶城县','麦盖提县','岳普湖县','伽师县','巴楚县','塔什库尔干塔吉克自治县','和田地区','和田市','和田县','墨玉县','皮山县','洛浦县','策勒县','于田县','民丰县','伊犁哈萨克自治州','伊宁市','奎屯市','霍尔果斯市','伊宁县','察布查尔锡伯自治县','霍城县','巩留县','新源县','昭苏县','特克斯县','尼勒克县','塔城地区','塔城市','乌苏市','额敏县','沙湾县','托里县','裕民县','和布克赛尔蒙古自治县','阿勒泰地区','阿勒泰市','布尔津县','富蕴县','福海县','哈巴河县','青河县','吉木乃县','石河子市','阿拉尔市','图木舒克市','五家渠市','北屯市','铁门关市','双河市','可克达拉市','昆玉市','台湾省','香港特别行政区','澳门特别行政区']

        #测试数据
        #areacodes = ['500000']
        #allareas = ['重庆市']  

        index = 0
        while(index < len(allareas)):
            #抓取
            url = "https://baike.baidu.com/item/"+ allareas[index]
            yield scrapy.Request(url, callback=lambda response, code=areacodes[index], area = allareas[index]:self.parse_area(response,code,area), dont_filter=True)
            index = index + 1
            pass

        pass

    def parse_area(self, response, code, area):
        link = response.xpath('//div[@class="summary-pic"]/a/@href').extract_first()
        index1 = link.find('/', 5)
        index2 = link.find('/', index1 + 1)
        linkcode = link[0: index2]
        alubmlink = 'https://baike.baidu.com' + linkcode
        yield scrapy.Request(alubmlink, callback=lambda response, code=code:self.parse_picpage(response,code), dont_filter=True)
        pass

    
    def parse_picpage(self, response, code):
        baseurl='https://baike.baidu.com'
        links = response.xpath('//div[@class="pic-list"]/a/@href').extract()
        newlists = []
        for element in links :
            if(element not in newlists):
                newlists.append(element)
                pass
            pass

        index = 0
        length = 3
        if len(newlists) < length:
            length = len(newlists)

        while(index < length):
            yield scrapy.Request(baseurl + newlists[index], callback=lambda response, code=code, index= index:self.parse_pic(response, code, index+1), dont_filter=True)
            index = index + 1
            pass
        pass

    def parse_pic(self, response, code, index):
        imgsrc = response.xpath('//img[@id="imgPicture"]/@src').extract_first()
        if imgsrc is None:
            return
        if imgsrc == '':
            return

        item = areaimgitem()
        item['code'] = code
        item['index'] = index
        item['imgurl'] = imgsrc
        yield item
        pass

    pass